package com.PlantVsZombies.online;

import java.io.IOException;
import java.net.Socket;

public class Client {
	private static final int POST = 8888;
	private static final String HOST = "127.0.0.1";
	
	public void start() throws IOException {
		Socket socket = new Socket(HOST, POST);
		new Thread(new DataReceive(socket)).start();
	}
	
	public static void main(String[] args) {
		try {
			new Client().start();
		} catch (IOException e) {
			e.printStackTrace();
		}
		/*ArrayList<Plant> plants = new ArrayList<>();
		plants.add(new SunFlower(0, 0));
		System.out.println(JsonUtil.toJSONString(plants));
		JSONObject jsonObject = JSONObject.fromObject(JsonUtil.toJSONString(plants));*/
		/*List arrayList = JsonUtil.toArrayList(jsonObject);
		System.out.println(arrayList.size());*/
	}
}
